from django.conf.urls import patterns, include, url

from django.contrib import admin


admin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'final_project.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^search/', include('search.urls')),
    url(r'^searchform/', include('searchform.urls')),

    url(r'^$', 'final_project.views.index'),

    url(r'^accounts/login/$', 'final_project.views.login'),
    url(r'^accounts/auth/$', 'final_project.views.auth_view'),
    url(r'^accounts/logout/$', 'final_project.views.logout'),
    url(r'^accounts/loggedin/$','final_project.views.loggedin'),
    url(r'^accounts/invalid/$', 'final_project.views.invalid_login'),
    url(r'^accounts/register/$', 'final_project.views.register_user'),
    url(r'^accounts/register_success/$', 'final_project.views.register_success'),

    #url(r'^search/details/$', 'search.views.details'),

	#url(r'^login/', include('login.urls')),
)
